package cn.zqh.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.zqh.auth.pojo.User;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zqh
 * @since 2022-12-24
 */
public interface UserMapper extends BaseMapper<User> {

    /**
      * @Author: zqh
      * @Date:
      * @Description: 通过qq邮箱获得用户的权限
    */
    List<String> getRoleCodeByEmail(String email);


    /**
     * @Author: zqh
     * @Date:
     * @Description: 查询被删除的用户带分页
     */
    List<cn.zqh.bean.bo.User> getUsersByDelPage(Integer page, Integer size);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 取消被删除了的用户
    */
    void cancelDelUser(String userId);


    /**
      * @Author: zqh
      * @Date:
      * @Description: 查询未被删除的用户
    */
    List<cn.zqh.bean.bo.User> getNoDelUser(int x, Integer size);

}
